<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>title</title>
</head>
<body>
<div id="app">
<!--    v-for遍历对象-->
    <span v-for="(value,key,index) in user">
        {{index}} : {{key}} : {{value}}
    </span>
    <br/>
<!--    v-for遍历数组-->
    <span v-for="(e,index) in arr">
        {{index}} : {{e}}
    </span>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    const app=new Vue({
        el:"#app",
        data:{
            user:{
                name:"yaya",
                age:18
            },
            arr:[41,64,24,43]
        },
        methods:{

        }
    });
</script>
</body>
</html>